import Vue from 'vue'
import Router from 'vue-router'

import Login from "@/views/Login"
import index from "@/views/index"
import me_student from "@/views/member/me_student"
import me_class from "@/views/member/me_class"
import me_work from "@/views/member/me_work"
import me_nofou from "@/views/member/me_nofou"
import course_manage from "@/views/member/course_manage"

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [{
      path: '/',
      name: 'Login',
      component: Login //路由跳转组件
    },
    {
      path: '/index',
      name: 'index',
      component: index,
      children: [{
          path: '/member/me_student',
          name: 'me_student',
          component: me_student
        }, {
          path: '/member/me_class',
          name: 'me_class',
          component: me_class
        }, {
          path: '/member/me_work',
          name: 'me_work',
          component: me_work
        }, {
          path: '/member/me_nofou',
          name: 'me_nofou',
          component: me_nofou
        },
        {
          path: '/member/course_manage',
          name: 'course_manage',
          component: course_manage
        },
      ]
    },
  ]
})
